package cn.imvc.app.repositories;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import cn.imvc.app.entities.Area;
import cn.imvc.data.jpa.repository.IJpqlExecutor;

public interface AreaRepository extends JpaRepository<Area, Integer>, IJpqlExecutor<Area> {
	public List<Area> findByName(String name);
	public List<Area> findByNameAndParent(String name, Area parent);
	public List<Area> findByParentOrderByIdAsc(Area area);
	public List<Area> findByParentIsNullOrderByIdAsc();
}
